package smallestnum_prob5;

public class SmallestNum {
	public static void main(String args[]){
		
		boolean divisible = false;
		int divisor = 0;
		int number;
		
		for(number = 20; !divisible;number = number + 20){
			divisor = 0;
			//check if divisible by all numbers between 1 and 20
			//Obv going to be divisible by 1,2,5,10,20 anyway
			for(divisor = 3;divisor < 20;divisor++){
				
				if(number % divisor != 0){
					break;
				}
			}
			if(divisor >= 20){
				divisible = true;
			}
			
		}
		System.out.println("Divisor: " + divisor);
		System.out.println("Divisible: " + divisible);
		System.out.println(number);
		
	}

}
